# 作者 :南雨
# 时间 : 2021/10/2 19:12
class RETCODE:
    OK = "200"  # 成功
    IMAGECODEERR = "4001"  # 验证码错误
    THROTTLINGERR = "4002"  # 短信发送频繁
    NECESSARYPARAMERR = "4003"  # 缺少必须的参数
    USERERR = "4004"  # 用户错误
    PWDERR = "4005"  # 密码错误
    CPWDERR = "4006"  # 确认密码错误
    MOBILEERR = "4007"  # 手机号错误
    SMSCODERR = "4008"  # 短信验证码错误
    SESSIONERR = "4009"  # 未登录
    DBERR = "4101"  # 数据连接错误
    REQERR = "4102"  # 非法请求或请求次数受限
    DATAERR = "4103"  # 用户名或密码错误
    THIRDERR = "4104"  # 上传失败
    NODATA = "4105"  # 信息不存在


error_map = {
    RETCODE.OK: u"成功",
    RETCODE.IMAGECODEERR: u"数据库查询错误",
    RETCODE.REQERR: u"非法请求或请求次数受限"
}
